package com.ds.home.database;

import com.alibaba.fastjson.annotation.JSONField;
import com.ds.home.EIScene;
import com.ds.home.EIZNode;
import com.ds.home.database.vo.SceneVO;

/**
 * Scene entity.
 * 
 * @author MyEclipse Persistence Tools
 */

public class DBScene implements EIScene {

	private SceneVO vo;



	/** full constructor */
	protected DBScene(SceneVO vo) {
		this.vo = vo;

	}

	public Integer getIntvalue() {
		return vo.getIntvalue();
	}

	public String getName() {
		return vo.getName();
	}

	public String getObjvalue() {
		return vo.getObjvalue();
	}

	public String getSceneid() {

		return vo.getSceneid();
	}

	public String getSensorid() {
		return vo.getSensorid();
	}

	public Integer getStatus() {

		return vo.getStatus();
	}

	public void setIntvalue(Integer intvalue) {
		vo.setIntvalue(intvalue);
	}

	public void setName(String name) {
		vo.setName(name);
	}

	public void setObjvalue(String objvalue) {
		vo.setObjvalue(objvalue);
	}

	public void setSensorid(String sensorid) {
		vo.setSensorid(sensorid);
	}

	public void setStatus(Integer status) {
		vo.setStatus(status);
	}

	public void setSceneid(String sensorid) {
		vo.setSensorid(sensorid);
	}

	@JSONField(serialize=false)
	public EIZNode getZnode() {
		EIZNode znode = MEMManagerImpl.getInstance().getZNodeById(this.getSensorid());
		return znode;
	}

	public SceneVO getVo() {
		return vo;
	}

	public void setVo(SceneVO vo) {
		this.vo = vo;
	}

}